package ynu.edu.dao;


import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import ynu.edu.common.dao.LogicDAO;
import ynu.edu.entity.ShopItem;

import java.util.List;

public interface ShopItemDao extends LogicDAO<ShopItem,Long> {
    @Query("select s from ShopItem s where s.shop.id=:shopId")
    public List<ShopItem> findAllByShopId(@Param(value = "shopId")Long shopId);
}
